<!DOCTYPE html>
<!-- manifest="/goods.appcache" -->
<html lang="en" manifest="/goods.appcache">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>商品详情</title>
</head>
<script src="../../js/edition.js"></script> 
<link rel="stylesheet" href="../../css/base.css">
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/goods_detail.css?version="+edition+"'>")
</script>
<link rel="stylesheet" href="../../css/popover.css">
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/style.css?version="+edition+"'>")
</script>
<script>
        document.write("<l"+"ink rel='stylesheet' href='../../css/index.css?version="+edition+"'>")
</script>
<script src="../../js/jquery.js"></script>
<script src="../../js/template.js"></script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/url.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/header.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/goods_detail.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script src="../../js/popover.js"></script>
<script src="../../js/magnifier.js"></script>
<script src="../../js/index_foot.js"></script>
<script src="../../js/jquery.cookie.js"></script>
<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="101353641" data-redirecturi="http://www.chinadangmai.com" charset="utf-8"></script>
<!-- <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=403690515&debug=true" type="text/javascript" charset="utf-8"></script> -->
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<!-- <script src="../js/popover_login.js"></script> -->
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/login.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script src="../../js/cookie.js"></script>
<script> 
        document.write("<s"+"cript type='text/javascript' src='../../js/no_login.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<!-- <script> 
document.write("<s"+"cript type='text/javascript' src='../../js/login_2.js?version="+edition+"'></scr"+"ipt>"); 
</script> -->
<!-- <script src="../../js/cart.js"></script> -->
<style>
#more {
    background: #ea2424;
    color: #fff;
    font-size: 14px;
    width: 120px;
    height: 34px;
    line-height: 34px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    margin: 50px auto;
}
.goods_img{ animation:myfirst 1.2s;}
@keyframes myfirst
{
0% {top: 144px; right:144px; }
100%{opacity: 0.6; top: -180px; right: 50%; margin-right:-778px;}
}
.login_container_bg{position: fixed; z-index:20; width: 100%; height: 100%; background: rgba(0,0,0,0.4); top: 0; display: none}
#login_container{position: absolute; z-index: 21; width: 300px; height: 400px; top: 50%; left: 50%; background: #fff; margin-top: -200px; margin-left: -150px; display: none}
</style>
<body style="background:#fff">
    <header class="mod_head">
        <script>
            $(function(){
                var src=$('.mod_logo img').attr('src')
                $('.mod_logo img').attr('src','../'+src)
                // console.log($.cookie('user'))
                // $('.shopping_cart').append('<em></em>')
                // if($.cookie('user')!=''&&$.cookie('user')!=null){
                //     return true;
                // }
                // else{
                //     var url=window.location.href
                //     goodsId=url.split('=')[1]
                //     $('.login').attr('href','/login/login.html?goodsId='+goodsId)
                // }
            })   
        </script> 
    </header>
    <form action="" method="post" id="buynow_form">
        <input type="hidden" id="goodsId" name="goodsId" value="" />
    <!-- 商品详情头部路径 start -->
    <div class="goods_route">
        <ul id="category">
            
        </ul>        
    </div>
    <!-- 商品详情头部路径 end -->
    <!-- 商品详情头部 start -->
    <div class="goods_details">
        <div class="l_wrap">
            <div class="small_box">
                <img src="" alt="">
                <span class="hover"></span>
                <i></i>
            </div>
            <div class="thumbnail_box">
                <!-- <a href="javascript:;" class="btn btn_prev"></a>
                <a href="javascript:;" class="btn btn_next"></a> -->
                <div class="list">
                    <ul class="wrapper" id="wrapper">
                        
                    </ul>
                </div>
            </div>
            <div class="social">
                <ul>
                    <li class="social_fav"><a href="javascript:void(0);"><i class="icon_star"></i><span>收藏商品</span><em class="favcount">(0人气)</em></a></li>
                    <!-- <li class="social_share"><a href="javascript:;"><i class="icon_share"></i><span>分享</span><em class="favcount">(0)</em></a></li> -->
                </ul>
            </div>
            <div class="big_box"><img src="" alt=""></div>
        </div>
        <script>     
            $(function () {
                $('.l_wrap').magnifier();
            });
        </script>
        <div class="r_wrap" id="r_wrap">

        </div>
        <script type="text/html" id="r_wrap_bg">
            {{ for (var i=0; i<list.length; i++) { }}
            <div class="append">
                    <!-- 商品标题 start -->
                    <div class="intro">
                        <div class="name">{{=list[i].name}}</div>
                        <div class="desc">{{=list[i].advSlogan}}</div>
                    </div>
                    <!-- 商品标题 end -->
                    <!-- 商品价格 start -->
                    <div class="price">
                        <span class="name">当买特价</span>
                        <span class="rnb">￥</span>
                        <span class="special_price">{{=list[i].price}}</span>
                        <!-- <a class="price_notice" href="">降价通知</a> -->
                    </div>
                    <!-- 运费 -->
                    <div class="norms" style="margin-bottom:10px; line-height:30px;">
                        <div class="norms_name" style="margin-top:0;">
                            运费
                        </div>
                        <div class="ify_yes norms_spec freight" style="color:#f10215;">
                           ￥0.00 
                        </div>
                    </div>
                    <!-- 商品价格价格 end -->
                    <div class="norms" style="margin-bottom:10px;">
                        <div class="norms_name norms_color"></div>
                        <div class="ify_yes norms_spec" id='norms'>

                        </div>
                    </div>
                    <!-- 商品规格 start -->
                    <div class="norms norms_hidden" style='display:none'>
                        <div class="norms_name norms_size"></div>
                        <div class="ify_no norms_spec" id='norms_spec'>
                            
                        </div>
                    </div>
                    <!-- 商品规格 end -->
                    <!-- 数量 start -->
                    <div class="norms" style="margin-bottom:3px;">           
                        <div class="norms_name">数量</div>         
                        <div class="input_num">       
                            <div id="buyNum" class="input" data-storage="999">
                                <span class="minus">-</span>
                                <input readonly="readonly" type="text" id="goods_num" name="num" value="1">
                                <span class="add">+</span>
                            </div>
                            <span class="storage" style='display:none'><label>库存</label><em></em>件</span>
                        </div>
                    </div>
                    <!-- 数量 end -->
                    <!-- 已选 start -->
                    <div class="norms">
                        <div class="norms_name">已选</div>
                        <div class="norms_label" id="norms_label"></div>
                    </div>
                    <!-- 已选 end -->
                    <div class="norms btn_group" style="height: 50px;">
                        <a href="javascript:;" class="join_cart">加入购物车</a>
                        <a href="javascript:;" class="buy_now_btn" target="_blank">立即购买</a>
                        <!-- <a href="javascript:;" class="buy_now_btn1" target="_blank">立即购买1</a> -->
                        <!-- <a href="javascript:;" class="share_btn">分享</a> -->
                    </div>
                </div>
            {{ } }}
        </script>
        <!-- 颜色 -->
        <script type="text/html" id="norms_bg">
            {{ for(var t=0; t < list.length; t++) { }}
            <span class="yes_click" data-param="{{=list[t].valueName}}" data-spid="{{=list[t].specId}}" data-valueid='{{=list[t].valueId}}'>
                <img src="{{=list[t].valueImg}}" alt="" title="{{=list[t].valueName}}">
            </span>
            {{ } }}
        </script>
        <!-- 尺码 -->
        <script type="text/html" id="norms_spec_bg">
            {{for(var r=0; r< list.length; r++){ }}
                <span class="yes_click" data-param="{{=list[r].valueName}}" data-spid="{{=list[r].specId}}" data-valueid='{{=list[r].valueId}}'>
                    {{=list[r].valueName}}
                </span>
            {{ } }}            
        </script>
        <!-- 轮播缩略图 -->
        <script type="text/html" id="wrapper_bg">
            {{ for(var i=0; i< list.length; i++) { }}
                <li class="item"><img src="{{=list[i].levelA}}" alt=""></li>
            {{ } }}
        </script>
    </div>
</form>
    <!-- 商品详情头部 end -->
    <!-- 商品详情 start -->
    <div class="mod_explicit" id="mod_explicit">
        <div class="recommend">
            <div class="recommend_tit">当买推荐</div>
            <ul class="recommend_list" id="left">
                
            </ul>
        </div>
        <script type="text/html" id="left_bg">
            {{for(var i=0;i<list.length; i++) { }} 
            <li>
                <a href="/src/goods/goods_detail.html?goods={{=list[i].leftGdId}}">
                    <img src="{{=list[i].leftGdImage}}" alt="{{=list[i].leftGdName}}">
                    <div class="recommend_price">
                        <span>￥{{=list[i].leftGdPrice}}</span>
                        <del>￥{{=list[i].leftGdMarketPrice}}</del>
                    </div>
                    <p class="recommend_name">{{=list[i].leftGdName}}</p>
                </a>
            </li>
            {{ } }}

        </script>
        <div class="r_wrap">
            <ul class="top_tip">
                <li>商品详情</li>
                <li>商品评价</li>
                <!-- <li>服务说明</li> -->
            </ul>
            <!-- 商品详情 -->
            <div class="depict_wrap goods_content">
                <ul class="custom">

                </ul>
                <!-- <img src="../images/goods/small_5.jpg" alt=""> -->
            </div>
            <!-- 商品评论 -->
            <div class="depict_wrap goods_evaluate">
                <div class="evaluate_tip"><span>商品评论</span></div>
                <div class="evaluate_top">
                    <ul class="l_evaluate">
                        <!-- <li class="evaluate_xf">与描述相符</li> -->
                        <li class="evaluate_num">5.0</li>
                        <li class="evaluate_star" style="width:136px"><i class="icon_start1"></i><i class="icon_start icon_start_j" ></i></li>
                    </ul>
                    <ul class="r_evaluate">
                        <li>
                            <span>非常满意(5分)</span>
                            <div class="evaluate_jd">
                            <div style="width: 100%;" class="red1 evaluate_jd1" data-num="5" data-score=""></div>

                            </div>
                        </li>
                        <li><span>满意(4分)</span>
                            <div class="evaluate_jd">
                                <div class="red1" data-num="4"  data-score=""></div>
                            </div>
                            </li>
                        <li>
                            <span>一般(3分)</span>
                            <div class="evaluate_jd">
                                <div class="red1" data-num="3"  data-score=""></div>
                            </div>
                            </li>
                        <li>
                            <span>不满意(2分)</span>
                            <div class="evaluate_jd">
                                <div class="red1" data-num="2"  data-score=""></div>
                            </div>
                            </li>
                        <li>
                            <span>非常不满(1分)</span>
                            <div class="evaluate_jd">
                                <div class="red1" data-num="1"  data-score=""></div>
                            </div>
                            </li>
                    </ul>
                </div>
                <div class="evaluate_tip evaluate_tip_2">
                    <span data-evaluatetype='0' class="s1 active">全部评价(0)</span>
                    <span data-evaluatetype='1' class="s2">好评(0)</span>
                    <span data-evaluatetype='2' class="s4">中评(0)</span>
                    <span data-evaluatetype='3' class="s3">差评(0)</span>
                </div>
                <ul class="evaluate_list" id="evaluate_list">

                </ul>
                <div class="more_bg"></div>
            </div>
            <script type="text/html" id="e_bg">
                {{ for(var i=0; i< list.length; i++) { }}
                <li data-isAnonymous="{{=list[i].isAnonymous}}">
                    <div class="evaluate_l">
                        <div>
                            <img src="{{=list[i].member_avatar}}" alt="">
                        </div>
                        <span data-id='{{=list[i].memberId}}'>{{=list[i].memberName}}</span>
                    </div>
                    <ul class="evaluate_r">
                            <li class="evaluate_star">
                                <i class="icon_start1"></i>
                                <i class="icon_start" id="icon_start"></i>
                            </li>
                        <li class="user_evaluate_star"  style="width:136px" data-scores={{=list[i].scores}}>
                                <i class="icon_start1" style="display: block;width: 136px;height: 23px;background: url(../images/base/star_icon1.png) 0 center no-repeat;margin: 0;position: absolute;z-index: 1; top: 0;left: 0;"></i>
                                <i class="icon_start" style="position: absolute;z-index: 2; top: 0;left: 0;display: block;width: 136px;height: 23px;background: url(../images/base/star_icon.png) 0 center no-repeat;margin: 0;"></i>
                        </li>
                        <li class="uesr_evaluate_txt">{{=list[i].content}}</li>
                        <!-- <li class="uesr_evaluate_img">
                            <img src="../images/base/touxiang.jpg" alt="">
                            <img src="../images/base/touxiang.jpg" alt="">
                            <img src="../images/base/touxiang.jpg" alt="">
                        </li> -->
                        <li class="uesr_evaluate_time">
                            <!-- <span class="user_buy_spec">175/M/蓝色</span> -->
                            <span style="width:auto" class="user_buy_time">{{=list[i].createTime}}</span>
                        </li>
                    </ul>
                </li>
                {{ } }}
            </script>  
            <!-- 服务说明 -->
            <div class="depict_wrap service_description">3</div>
        </div>
    </div>
    <!-- 添加自定义属性 -->
  	<script type="text/html" id="custom">
        {{ for(var i=0; i < list.length; i++) { }}
            <li class="custom_li">
                <span>{{=list[i].name}} :</span>
                <em>{{=list[i].value}}</em>
            </li>
        {{ } }}
    </script>
    <!-- 添加属性 -->
    <script type="text/html" id="customTpl">
        {{ for(var i=0; i < customList.length; i++) { }}
            <li class="custom_li">
                <span>{{=customList[i].name}} :</span>
                <em>{{=customList[i].value}}</em>
            </li>
        {{ } }}
    </script>
    <footer class="mod_foot"></footer>
    <!-- 商品详情 end -->
</body>
<div class="popover_m" style="display:none"></div>
<div class="site_bg" style="display:none">
<span class="gb_01" style="display:block;width:18px;height:18px;background:url(../../img/base/icon_06.png) 0 0 no-repeat;float:right;margin:40px 30px 0 0;cursor: pointer; position: absolute; z-index: 1;right: 30px"></span>
<form class="register_tab">
<div class="login_bg" style="width:100%; border:0;">
<input type="hidden" name="" value="" class="qc_token">
<p class="login_title" style="width:100%; height:89px; line-height:89px; color:#fff; font-weight:600">用户登录</p>
<ul style="margin-top:20px;">
<li>
<em>账<i style="width: 24px; display: inline-block;"></i>号</em>
<input type="text" name="phone" id="phone" placeholder="请输入手机号">
<div class="error">请输入正确的用户名</div>
</li>
<li>
<em>密<i style="width: 24px; display: inline-block;"></i>码</em>
<input type="password" name="password" maxlength="18" id="password" placeholder="请输入密码">
<div class="error">请输入正确的密码</div>
</li>
</ul>
<div class="select">
<p class="fl_l">
还没账号？<a href="../login/register.html">前往注册>></a>
</p>
<a href="../login/retrieve_password.html" class="fl_r">忘记密码?</a>
</div>              
<div class="login_sub"><input type="submit" value="登录" id="login_sub"></div>
<div class="s_login">
<dl>
<dd data-type="1"  style="width:50%"><span id="qqLoginBtn"></span><a href=""><img src="../../img/login/qq.png" alt="" srcset=""></a></dd>      
<dd style="width:50%" class="wx_login" data-type="3"><a><img src="../../img/login/wx.png" alt="" srcset=""></a></dd>
<!-- // popo_lo+='<dd data-type="2">'
// popo_lo+='<div id="wb_connect_btn">'
// popo_lo+='<wb:login-button onlogin="login" onlogout="logout"></wb:login-button>'
// popo_lo+='</div>'
// popo_lo+='<a><img src="../images/login/wb.png" alt="" srcset=""></a>'
// popo_lo+='</dd>' -->
</dl>
</div>          
</div>
</form>
</div>
<div class="login_container_bg"></div>
<div id="login_container">
</div>
<script>
    // console.log(window.location.href)
    // (window.location.href).split('=')
var obj = new WxLogin({
    id:"login_container", 
    appid: "wx39e3c56e1f6d718e", 
    scope: "snsapi_login", 
    redirect_uri:"http%3a%2f%2fwww.chinadangmai.com/index.html",
    state: "",
    style: "",
    href: ""
});
</script>
</html>
<script> 
$(function(){
    if($.cookie('user')!=''&&$.cookie('user')!=null){
        // 是否登录
        strs=$.cookie('user').split(",")
        var token=''
        for(var i in strs){
            token=strs[6]
        } 
    }else{
        var QC_openId=''
        var QC_Token=''
        var data_type=''
        $('#qqLoginBtn').click(function(){
            data_type=$(this).parents('dd').attr('data-type')
        });
        $(function(e){
            // qq登录
            //调用QC.Login方法，指定btnId参数将按钮绑定在容器节点中
            QC.Login({
                //btnId：插入按钮的节点id，必选
                btnId:"qqLoginBtn",    
            });
            //get_user_info是API参数//指定接口访问成功的接收函数，s为成功返回Response对象
            QC.api("get_user_info", {}).success(function (s){           
                //成功回调，通过s.data获取OpenAPI的返回数据           
                nick = s.data.nickname; //获得昵称           
                headurl = s.data.figureurl_qq_1; 
                //获得头像              
                if (QC.Login.check()){
                    //判断是否登录               
                    QC.Login.getMe(function(openId, accessToken){ 
                        //这里可以得到openId和accessToken                        
                        // console.log('openId:'+openId);
                        // console.log('accessToken:'+accessToken);
                        QC_openId=openId;  
                        QC_Token=accessToken;
                        // console.log(QC_Token); 
                        $('.qc_token').val(QC_Token); 
                        // $.cookie('QC_Token','QC_Token',{path:'/'});
                    });           
                }    
            }).error(function(f){           
                    //失败回调           
                    alert("获取用户信息失败！");       
                }).complete(function(c){
                    //完成请求回调   
                    // console.log("获取用户信息完成！"); 
                    setTimeout(function(){
                        // console.log($('.qc_token').val()+'.............');
                        var token=$('.qc_token').val();
                        $.ajax({
                            url:new_url+'shop/oauth/oauthLogin',
                            type:'post',
                            data:{oauthType:'2',accessToken:token},
                            dataType:'json',
                            success:function(e){
                                // console.log(e)  
                                if(e.code=='2007'){
                                    var this_u=window.location.href
                                    $.cookie('this_u',this_u,{path:'/'})
                                    tc(e.message)
                                    setTimeout(function(){
                                        window.location.href='/login/binding.html?oauthId='+e.data.oauthId+'&'+'1'
                                    },300) 
                                    QC.Login.signOut()
                                }  
                                if(e.code=='0'){
                                    tc(e.message)
                                    var mycars = new Array()
                                    mycars[0] = e.data.name
                                    mycars[1] = e.data.nickName
                                    mycars[2] = e.data.phone
                                    mycars[3] = e.data.avatar
                                    mycars[4] = e.data.truename
                                    mycars[5] = e.data.memberId
                                    mycars[6] = e.data.token
                                    mycars[7] = 
                                    $.cookie('user',mycars,{path:'/'});
                                    var url=window.location.href
                                    var size=url.split('=')[1]
                                    // console.log(size)
                                    // var u=url.split('m/')[1]
                                    // console.log(u)
                                    // console.log(size)
                                    // if(size==='1'){
                                    //     setTimeout(function(){
                                    //         window.location.href='/index.html'  
                                    //         return false;   
                                    //     },1100)   
                                    // }
                                    // if(size==='2'){
                                    //     setTimeout(function(){
                                    //         window.history.go(-1) 
                                    //         return false;
                                    //             // window.location.href=url+'/index.html'
                                    //     },1100)
                                    // }
                                    // if(size===undefined){
                                    //     setTimeout(function(){
                                    //         window.location.href='/index.html'   
                                    //         return false;  
                                    //     },1100) 
                                    // }
                                    // if(size!='1'&&size!='2'&&size!=undefined){
                                    setTimeout(function(){
                                        window.location.reload();
                                        $.cookie('this_u','',{path:'/'});
                                        return false;  
                                    },1100)
                                    // } 
                                    QC.Login.signOut();
                                }
                            }
                        })
                        return false
                    },300); 
                }); 
    }); 
    // 微信登陆
    $('.wx_login').click(function(){
        var this_u=window.location.href;
        $.cookie('this_u',this_u,{path:'/'});
        // var url='https://open.weixin.qq.com/connect/qrconnect?appid=wx39e3c56e1f6d718e&redirect_uri=http%3a%2f%2fdm.bgemall.com&response_type=code&scope=snsapi_login&state=1#wechat_redirect'
        // window.location.href=url
        // $('.login_container_bg, #login_container').show()
        // $('.login_container_bg').click(function(){
        //     $('.login_container_bg, #login_container').hide()
        // })   
        window.location.href='/login/login.html?type=3';
    });

    // WB2.anyWhere(function (W) {
    //     W.widget.connectButton({
    //         id: "wb_connect_btn",
    //         type: '3,3',
    //         callback: {
    //             login: function (o){ 
    //                 //登录后的回调函数
    //                 //微博名称
    //                 alert(o.screen_name);
    //                 console.log(o)
    //                     // 验证是否登入成功
    //     if(WB2.checkLogin()){
    //         // api 入口
    //             // 调用 account/get_uid 接口，获取用户信息
    //             W.parseCMD('/account/get_uid.json', function(oResult, bStatus){
    //                 if(bStatus){
    //                     setTimeout(function(){
    //                     console.log($('.qc_token').val()+'.............')
    //                     var token=$('.qc_token').val()
    //                     $.ajax({
    //                         url:new_url+'shop/oauth/oauthLogin',
    //                         type:'post',
    //                         data:{oauthType:'2',accessToken:token},
    //                         dataType:'json',
    //                         success:function(e){
    //                             console.log(e)  
    //                             if(e.code=='2007'){
    //                                 tc(e.message)
    //                                 setTimeout(function(){
    //                                     window.location.href='/login/binding.html?oauthId='+e.data.oauthId
    //                                 },300) 
    //                             }  
    //                             if(e.code=='0'){
    //                                 tc(e.message)
    //                                 var mycars = new Array()
    //                                 mycars[0] = e.data.name
    //                                 mycars[1] = e.data.nickName
    //                                 mycars[2] = e.data.phone
    //                                 mycars[3] = e.data.avatar
    //                                 mycars[4] = e.data.truename
    //                                 mycars[5] = e.data.memberId
    //                                 mycars[6] = e.data.token
    //                                 mycars[7] = 
    //                                 $.cookie('user',mycars,{path:'/'});
    //                                 setTimeout(function(){
    //                                     window.location.href='/index.html'
    //                                 },300) 
    //                             }
    //                         }
    //                     })
    //                 },300)  
    //                 }
    //             }, {}, {
    //                 method : 'get',
    //                 cache_time : 30
    //             });
    //     }
    //     }
    //     }
    //     });
    // });
    // //微博退出：
    // WB2.logout(function() {
    //         window.location.href='/';//跳转或干你想干的事情
    // });
        // $('.buy_now_btn').attr('href','/cart/pay_commit.html?goodsid='+id);
    } 
}); 
</script> 
<script>  
    document.write("<s"+"cript type='text/javascript' src='../../js/nav_hover.js?version="+edition+"'></scr"+"ipt>"); 
</script>
<script>
    $(function(){
        // 底部小图标路径修改
        $('.foot_list>img').each(function(){
            var src = $(this).attr('src');
            $(this).attr('src','../../'+src);
        });
        // 底部链接修改
        $('.footer_ul a').each(function(){
            var newHref = $(this).attr('href');
            if(newHref!='javascript:;'){
                $(this).attr('href','..'+newHref);
            }
        });
    });
</script>   